﻿/*
 * Created by SharpDevelop.
 * User: amb
 * Date: 02/06/2014
 * Time: 21:29
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using JdFormsDll;
using JdFormDll.Decorator;

namespace JdFormsCsharpClass
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public partial class MainForm : MyForm
	{
		public MainForm()
		{
			InitializeComponent();
		}
		
		void MainForm_Load(object sender, System.EventArgs e)
		{
			var v = Enum.GetNames(typeof(MyFormDecoratorSettings));
            toolStripComboBox1.Items.Clear();
            toolStripComboBox1.Items.AddRange(v.ToArray());
            toolStripComboBox1.SelectedIndex = 0;
		}	
		
		void ToolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e)
		{
			Skins.CurrentDecorator = (MyFormDecoratorSettings)toolStripComboBox1.SelectedIndex;
			Skins.SetDecorator(this);
			toolStripStatusLabel1.Text = "Decorator from " + toolStripComboBox1.Text;
            this.Invalidate();
		}
	}
}
